
LocationService = function() {
};

LocationService.prototype = {
    getCurrentPosition: function(callback) {
        var success = function(p) {
            var latlng = new LatLng({
                latitude: p.coords.latitude,
                longitude: p.coords.longitude
            });
            callback(latlng);
        };
        var error = function() {
            callback(new Error());
        };
        navigator.geolocation.getCurrentPosition(success, error);
    }
};
